


Route::group(function () {
    //秒杀
        Route::get("/get_seckill_list", "app\api\controller\Seckill@list")->name("seckill.get_seckill_list");// 获取活动列表
        Route::get("/get_seckill_detail", "app\api\controller\Seckill@detail")->name("seckill.get_seckill_detail");// 获取活动详情
        Route::post("/start_seckill", "app\api\controller\Seckill@start_seckill")->name("seckill.start_seckill");// 发起砍价
        Route::get("/share_seckill_detail", "app\api\controller\Seckill@share_detail")->name("seckill.share_seckill_detail");// 分享砍价详情
        Route::post("/seckill_pay", "app\api\controller\Seckill@seckill_pay")->name("seckill.seckill_pay");//砍价订单支付
         
    })
->allowCrossDomain()
->middleware(\app\api\middleware\TokenMiddleware::class,true);// jwt认证

Route::group(function () {
    //秒杀支付回调
       Route::post("/seckill_notify", "app\api\controller\Seckill@notify")->name("seckill.notify");//支付回调
       Route::get("/rollback_seckill", "app\api\controller\Seckill@rollback_seckill")->name("seckill.rollback_seckill");//定时任务
    })
->allowCrossDomain();

